package com.lee.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DateUtils {

    public static String getNowDate() {
        Date date = new Date();
        SimpleDateFormat ft = new SimpleDateFormat("yyyy-MM-dd_HH_mm_ss");
        return ft.format(date);
    }

    public static void main(String[] args) {

        String nowDate = DateUtils.getNowDate();
        System.out.printf(nowDate);
    }
}
